<?php
include('../../../wp-blog-header.php'); 

$red_link = $_GET['r'];
$redirect = $red_link;
//echo $red_link;
//exit();
if($redirect == 'http://buzzr.in/wordpress/wp-content/plugins/buzzr_tracking/registered.php'){
$redirect = 'http://buzzr.in';
}
?>
<html>
  <head>
  <title>Buzzr.in</title>
  <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1717133-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  </script>
  <script type="text/javascript">
  function delayedRedirect(destination) {
    window.location.href = destination;
  }
  _gaq.push(['_trackEvent', 'Registration', 'Registration Form']);
  </script>
  </head>
  <?php if(!empty($redirect)){ ?>
  <body onLoad="setTimeout(delayedRedirect('<?php echo $redirect; ?>'), 2000)">
  <?php }else{ ?>
  <body>
  <?php } ?>  
    <div style="text-align: center;"><img src="http://buzzr.in/wordpress/wp-content/uploads/2011/01/buzzrin-logo.png" /></div>
    <div style="text-align: center;margin-top:50px;"><img src="<?php echo get_bloginfo('wpurl').'/wp-content/pfiles/images/buzzr_spinner.gif'; ?>" /></div>
    <div style="text-align: center;margin-top:50px;"><?php if(empty($redirect)){ ?>Please check your email for the password....<br /><a onClick="javascript:red();" href="#">Click here to return to Buzzr.in</a><?php }else{ ?>Please Wait....<?php } ?></div>
  <script type="text/javascript">
      function red(){
        window.parent.location.href= 'http://buzzr.in';
      }
  </script>
  </body>
</html>